package com.rran.study.designpattern.behavioral.state;

/**
 * @author yy
 * @Type Evening.java
 * @Desc 夜晚状态 状态的一个分支
 * @date 2020/7/27 19:03
 */
public class Evening implements State {

    @Override
    public void WriteProgram(Work work) {
        if (work.getHour() >= 19) {
            System.out.println("该下班了哦");
        }
    }

}
